home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
REQUEST.422
< prev
next >
Wrap
Text File
|
1993-02-17
|
3KB
|
81 lines
request a phile with "//REQUEST" at main & dl menu!
Stud #540 @12456
3Sunday, February 14, 1993 112:39 am
┌─────────────────────────────────────────────────────────────────────────────┐
│ Name of mod : Who cares... │
│ Version :4.22, but works with 4.21 │
│ What it doez: I've seen many mods that will let a user e-mail the sysop as │
│ to what ofline philes they want, but this uses ssm to tell │
│ the sysop that a user whats a phile. This is a combo of 2 │
│ other modz, so i won't take credit for it...anyway... │
└─────────────────────────────────────────────────────────────────────────────┘
Step [1]. Back up da source. I doubt this will do anything if u do it wrong,
but it's better to be safe than sorry...
Step [2]. In BBS.C search for this in : void mainmenu(void)
if (strcmp(s,"/?")==0) {
printmenu(5);
}
}
/*************************************************/
/*ADD*/ if (strcmp(s,"REQUEST")==0) {
/*ADD*/ request_file();
/*ADD*/ }
if ((strcmp(s,"UPLOAD")==0) && (actsl>10))
upload_post();
if (strcmp(s,"QSCAN")==0) {
nl();
prt(5,get_string(24));
Step [3]. Still in BBS.C, look in dlmainmenu(void) for this:
sysopchar(s);
if (strcmp(s,"/O")==0)
hangup=1;
/*ADD*/ if (strcmp(s,"//REQUEST")==0) {
/*ADD*/ request_file();
/*ADD*/ }
if (strcmp(s,"/S")==0) {
pl(get_string(26));
set_x_only(1,"FILES.TXT", 1);
Step [4]. Go to the bottom of BBS.C and add this void...
/* ADD */ void request_file(void)
{
char *s, s1[81],s2[81],ch;
prt(8,"Would you like to request a phile?");
if (yn()) {
prt(9,"Pleaze type the name of the phile(s)...");
nl();
mpl(75);
sprintf(s2,"Phile Request From %s %d: ",thisuser.name,usernum);
ssm(1,0,s2);
strcpy(s2," ");
input(s1,75);
strcat(s2,s1);
ssm(1,0,s2);
}
}
Step [5]. Now Save BBS.C and Load FCNS.H and look for /* File: bbs.c */
and then add this function.
/* ADD */ void request_file(void);
Save FCNS.H, Now recompile.
<Insert stupid disclaimer here>
l8rnezz...
9
9 1─────4 The Insane Asylum 1────4 Link @12456 / Net @2456 1─────0
8 1─────4 Become a patient! 1────4 (214) 570-5950 (USR DS) 1─────0